package la.iok.hzsvn.lewin.movie.core.model;

public class UserRoleDetail extends UserRoleVo {
    private Long id;
    /**
     * 组织名称
     */
    private String orgUnitName;
    /**
     * 1：店铺；2：加盟商
     */
    private int orgUnitType;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrgUnitName() {
        return orgUnitName;
    }

    public void setOrgUnitName(String orgUnitName) {
        this.orgUnitName = orgUnitName;
    }

    public int getOrgUnitType() {
        return orgUnitType;
    }

    public void setOrgUnitType(int orgUnitType) {
        this.orgUnitType = orgUnitType;
    }

    /**
     * 判断是否店铺类型
     * @return 是店铺类型返回true,否则false
     */
    public boolean shop(){
        return orgUnitType == OrgUnitType.SHOP.getCode();
    }

    /**
     * 判断是否加盟商类型
     * @return 是加盟商返回true,否则false
     */
    public boolean franchisee(){
        return orgUnitType == OrgUnitType.FRANCHISEE.getCode();
    }
}
